package com.nbicc.survey.po;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import java.util.Date;

/**
 * @Author: lilingyan
 * @Date 2018/12/6 10:13
 */
@Data
public class Answer {

    public final static String TABLE_SURVEY_ANSWER= "survey_answer";

    /**
     * 答案唯一id
     */
    private String id;
    /**
     * 问卷id
     */
    @NotBlank
    private String questionnaireId;
    /**
     * 问题id
     */
    @NotBlank
    private String topicId;
    /**
     * 回答者id
     */
    private String respondentId;
    /**
     * 答案
     */
    @NotBlank
    private String result;
    /**
     * 回答时间
     */
    private Date createTime;

}
